func makeArray<T>(repeating item:T,numberOfTimes:Int) -> [T]{
	var result = [T]()
	for _ in 0..<numberOfTimes{
		result.append(item)
	}
	
	return result
}

class A{
	var name:String?
	var age:Int = 0
}

var array = makeArray(repeating:"knock",numberOfTimes:5)

print(array)
